/*! For license information please see full.cdn.js.LICENSE */ !function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=15)}([function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},schemaValidator=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(_classCallCheck(this,BaseEvent),this.eventName=this.constructor.eventType,this.type=this.constructor.eventType,this.trackToSnowplow=!0,this.props=JSON.parse(JSON.stringify(props)),this.constructor===BaseEvent)throw new _SystemError2.default("Must extend BaseEvent");if("function"==typeof schemaValidator&&!schemaValidator(this.props))throw new _MissingPropsError2.default(this,schemaValidator)}return _createClass(BaseEvent,[{key:"getSnowplowEventData",value:function(){return{eventData:{},eventContexts:[]}}}],[{key:"eventType",get:function(){return null}}]),BaseEvent}();exports.default=BaseEvent},function(module,exports,__webpack_require__){"use strict";function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function formatAsString(value){var upper=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==value)return"";return upper?String(value).toUpperCase():String(value).toLowerCase()}function formatAsYesNo(value){return!0!==value&&"yes"!==String(value).toLowerCase()&&"true"!==String(value).toLowerCase()?"no":"yes"}function renameProp(oldProp,newProp,_ref){var old=_ref[oldProp],others=_objectWithoutProperties(_ref,[oldProp]);return null==old?_extends({},others):_extends(_defineProperty({},newProp,old),others)}function renameProps(objectArray){var props=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==objectArray?[]:objectArray.map(function(item){if(null==item)return item;var temp=item;return Object.keys(props).forEach(function(prop){temp=renameProp(prop,props[prop],temp)}),temp})}function repriceProductsWithTotalRevenue(products,revenue){var format=arguments.length>2&&void 0!==arguments[2]&&arguments[2],price=revenue;return format&&(price=formatAsString(price)),products.map(function(product){return product.price=price,product})}function concatenateStrings(){for(var _len=arguments.length,s=Array(_len),_key=0;_key<_len;_key++)s[_key]=arguments[_key];return s.join("")}function isInIFrame(){try{return window.self!==window.parent}catch(e){return!0}}function wrapDataWithSnowplowSchema(schema,version,data){return{schema:"iglu:com.weebly/"+schema+"/jsonschema/"+version,data:data}}function splitName(){var name=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",EMPTY_NAME={firstName:"",lastName:""};if(!name)return EMPTY_NAME;var trimmedName=name.trim().replace(/\s+/g," ");if(!trimmedName)return EMPTY_NAME;var nameParts=trimmedName.split(" ");if(1===nameParts.length)return{firstName:trimmedName,lastName:""};var firstNameParts=nameParts.slice(0,-1),lastNamePart=nameParts.slice(-1);return{firstName:firstNameParts.join(" "),lastName:lastNamePart.join(" ")}}function parseWeeblyURL(url){var uri=new _urijs2.default(url);uri.query("");var parts=uri.path().split("/");return["users","user","sites","site"].forEach(function(item){if(parts.indexOf(item)>-1){var index=parts.indexOf(item);parts.splice(index,2)}}),parts=parts.filter(function(part){return!(part.length>15)}),uri.path(parts.join("/")),uri.toString()}function valueIsRealString(value){return null!=value&&"string"==typeof value&&value.length>0}function parseEventContexts(props){var contexts=[];return props.buyer_context&&contexts.push(wrapDataWithSnowplowSchema("context_be_buyer","1-0-2",{visitor_id:formatAsString(props.buyer_context.visitor_id),visitor_type:formatAsString(props.buyer_context.visitor_type),square_customer_account_id:formatAsString(props.buyer_context.square_customer_account_id),square_buyer_id:formatAsString(props.buyer_context.square_buyer_id),square_pay_buyer_type:formatAsString(props.buyer_context.square_pay_buyer_type)})),props.item_context&&contexts.push(wrapDataWithSnowplowSchema("context_be_item","1-0-1",{site_product_id:formatAsString(props.item_context.site_product_id),site_product_sku_id:formatAsString(props.item_context.site_product_sku_id),com_product_guid:formatAsString(props.item_context.com_product_guid),com_product_sku_guid:formatAsString(props.item_context.com_product_sku_guid),square_item_id:formatAsString(props.item_context.square_item_id),item_attributes:props.item_context.item_attributes})),props.item_contexts&&props.item_contexts.forEach(function(itemContext){contexts.push(wrapDataWithSnowplowSchema("context_be_item","1-0-1",{site_product_id:formatAsString(itemContext.site_product_id),site_product_sku_id:formatAsString(itemContext.site_product_sku_id),com_product_guid:formatAsString(itemContext.com_product_guid),com_product_sku_guid:formatAsString(itemContext.com_product_sku_guid),square_item_id:formatAsString(itemContext.square_item_id),item_attributes:itemContext.item_attributes}))}),props.order_context&&contexts.push(wrapDataWithSnowplowSchema("context_be_order","1-0-3",{com_order_guid:formatAsString(props.order_context.com_order_guid),site_order_id:formatAsString(props.order_context.site_order_id),square_order_id:formatAsString(props.order_context.square_order_id),payment_token:formatAsString(props.order_context.payment_token),fulfillment:formatAsString(props.order_context.fulfillment),order_attributes:props.order_context.order_attributes})),props.event_context&&contexts.push(wrapDataWithSnowplowSchema("context_be_event","1-0-0",{event_attributes:props.event_context.event_attributes})),props.contexts&&contexts.push.apply(contexts,_toConsumableArray(props.contexts.map(function(context){return wrapDataWithSnowplowSchema(context.name,context.version,context.data)}))),contexts}function parseGlobalContexts(pageAndUserData){var contexts=[];return pageAndUserData.experiments&&pageAndUserData.experiments.forEach(function(test){contexts.push(wrapDataWithSnowplowSchema("context_ab_segment","1-0-0",{test_id:test.name,segment:test.variant}))}),contexts.push(wrapDataWithSnowplowSchema("context_be_merchant","1-0-1",{user_id:formatAsString(pageAndUserData.userId),merchant_token:formatAsString(pageAndUserData.merchantToken)})),contexts.push(wrapDataWithSnowplowSchema("context_be_site","1-0-1",{catalog_site_id:formatAsString(pageAndUserData.catalogSiteId),storefront_site_id:formatAsString(pageAndUserData.storefrontSiteId),product:formatAsString(pageAndUserData.product),subproduct:formatAsString(pageAndUserData.subproduct),platform:formatAsString(pageAndUserData.platform),site_lightning_theme_id:formatAsString(pageAndUserData.siteLightningThemeId)})),contexts}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:"",noProtocol=String(url).replace(/^(https?:)?(\/\/)?/,"");return(protocol.length>0?protocol+":":"")+"//"+noProtocol}function validateEventProps(properties){if(null==properties)throw new _SystemError2.default("Event properties must be passed");if(null==properties.type)throw new _SystemError2.default("Missing or null event type",properties)}function safeClone(obj){return JSON.parse((0,_safeJsonStringify2.default)(obj))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.installVuePlugin=installVuePlugin,exports.convertEnvToHost=convertEnvToHost,exports.ensureLeadingSlashes=ensureLeadingSlashes,exports.validateEventProps=validateEventProps,exports.safeClone=safeClone;var _safeJsonStringify=__webpack_require__(28),_safeJsonStringify2=_interopRequireDefault(_safeJsonStringify),_SystemError=__webpack_require__(4),_SystemError2=_interopRequireDefault(_SystemError)},function(module,exports,__webpack_require__){"use strict";(function(module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};!function(root,factory){"object"===_typeof(module)&&module.exports?module.exports=factory(__webpack_require__(11),__webpack_require__(13),__webpack_require__(14)):(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(11),__webpack_require__(13),__webpack_require__(14)],__WEBPACK_AMD_DEFINE_FACTORY__=factory,void 0!==(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(0,function(punycode,IPv6,SLD,root){function URI(url,base){var _urlSupplied=arguments.length>=1,_baseSupplied=arguments.length>=2;if(!(this instanceof URI))return _urlSupplied?_baseSupplied?new URI(url,base):new URI(url):new URI;if(void 0===url){if(_urlSupplied)throw new TypeError("undefined is not a valid argument for URI");url="undefined"!=typeof location?location.href+"":""}if(null===url&&_urlSupplied)throw new TypeError("null is not a valid argument for URI");return this.href(url),void 0!==base?this.absoluteTo(base):this}function isInteger(value){return/^[0-9]+$/.test(value)}function escapeRegEx(string){return string.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function getType(value){return void 0===value?"Undefined":String(Object.prototype.toString.call(value)).slice(8,-1)}function isArray(obj){return"Array"===getType(obj)}function filterArrayValues(data,value){var i,length,lookup={};if("RegExp"===getType(value))lookup=null;else if(isArray(value))for(i=0,length=value.length;i]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,URI.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},URI.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,URI.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,URI.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},URI.hostProtocols=["http","https"],URI.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,URI.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},URI.getDomAttribute=function(node){if(node&&node.nodeName){var nodeName=node.nodeName.toLowerCase();if("input"!==nodeName||"image"===node.type)return URI.domAttributes[nodeName]}},URI.encode=strictEncodeURIComponent,URI.decode=decodeURIComponent,URI.iso8859=function(){URI.encode=escape,URI.decode=unescape},URI.unicode=function(){URI.encode=strictEncodeURIComponent,URI.decode=decodeURIComponent},URI.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},URI.encodeQuery=function(string,escapeQuerySpace){var escaped=URI.encode(string+"");return void 0===escapeQuerySpace&&(escapeQuerySpace=URI.escapeQuerySpace),escapeQuerySpace?escaped.replace(/%20/g,"+"):escaped},URI.decodeQuery=function(string,escapeQuerySpace){string+="",void 0===escapeQuerySpace&&(escapeQuerySpace=URI.escapeQuerySpace);try{return URI.decode(escapeQuerySpace?string.replace(/\+/g,"%20"):string)}catch(e){return string}};var _parts={encode:"encode",decode:"decode"},generateAccessor=function(_group,_part){return function(string){try{return URI[_part](string+"").replace(URI.characters[_group][_part].expression,function(c){return URI.characters[_group][_part].map[c]})}catch(e){return string}}};for(var _part in _parts)URI[_part+"PathSegment"]=generateAccessor("pathname",_parts[_part]),URI[_part+"UrnPathSegment"]=generateAccessor("urnpath",_parts[_part]);var generateSegmentedPathFunction=function(_sep,_codingFuncName,_innerCodingFuncName){return function(string){var actualCodingFunc;actualCodingFunc=_innerCodingFuncName?function(string){return URI[_codingFuncName](URI[_innerCodingFuncName](string))}:URI[_codingFuncName];for(var segments=(string+"").split(_sep),i=0,length=segments.length;i-1&&(parts.fragment=string.substring(pos+1)||null,string=string.substring(0,pos)),pos=string.indexOf("?"),pos>-1&&(parts.query=string.substring(pos+1)||null,string=string.substring(0,pos)),string=string.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),string=string.replace(/^[/\\]{2,}/i,"//"),"//"===string.substring(0,2)?(parts.protocol=null,string=string.substring(2),string=URI.parseAuthority(string,parts)):(pos=string.indexOf(":"))>-1&&(parts.protocol=string.substring(0,pos)||null,parts.protocol&&!parts.protocol.match(URI.protocol_expression)?parts.protocol=void 0:"//"===string.substring(pos+1,pos+3).replace(/\\/g,"/")?(string=string.substring(pos+3),string=URI.parseAuthority(string,parts)):(string=string.substring(pos+1),parts.urn=!0)),parts.path=string,parts},URI.parseHost=function(string,parts){string||(string=""),string=string.replace(/\\/g,"/");var bracketPos,t,pos=string.indexOf("/");if(-1===pos&&(pos=string.length),"["===string.charAt(0))bracketPos=string.indexOf("]"),parts.hostname=string.substring(1,bracketPos)||null,parts.port=string.substring(bracketPos+2,pos)||null,"/"===parts.port&&(parts.port=null);else{var firstColon=string.indexOf(":"),firstSlash=string.indexOf("/"),nextColon=string.indexOf(":",firstColon+1);-1!==nextColon&&(-1===firstSlash||nextColon-1?firstSlash:string.length-1);return pos>-1&&(-1===firstSlash||pos-1?slice.slice(0,parensEnd)+slice.slice(parensEnd).replace(_trim,""):slice.replace(_trim,""),!(slice.length<=match[0].length||options.ignore&&options.ignore.test(slice))){end=start+slice.length;var result=callback(slice,start,end,string);void 0!==result?(result=String(result),string=string.slice(0,start)+result+string.slice(end),_start.lastIndex=start+result.length):_start.lastIndex=end}}return _start.lastIndex=0,string},URI.ensureValidHostname=function(v,protocol){var rejectEmptyHostname=!1;if(protocol&&(rejectEmptyHostname=arrayContains(URI.hostProtocols,protocol)),rejectEmptyHostname&&!v)throw new TypeError("Hostname cannot be empty, if protocol is "+protocol);if(v&&v.match(URI.invalid_hostname_characters)){if(!punycode)throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(punycode.toASCII(v).match(URI.invalid_hostname_characters))throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-:_]')}},URI.ensureValidPort=function(v){if(v){var port=Number(v);if(!(isInteger(port)&&port>0&&port<65536))throw new TypeError('Port "'+v+'" is not a valid port')}},URI.noConflict=function(removeAll){if(removeAll){var unconflicted={URI:this.noConflict()};return root.URITemplate&&"function"==typeof root.URITemplate.noConflict&&(unconflicted.URITemplate=root.URITemplate.noConflict()),root.IPv6&&"function"==typeof root.IPv6.noConflict&&(unconflicted.IPv6=root.IPv6.noConflict()),root.SecondLevelDomains&&"function"==typeof root.SecondLevelDomains.noConflict&&(unconflicted.SecondLevelDomains=root.SecondLevelDomains.noConflict()),unconflicted}return root.URI===this&&(root.URI=_URI),this},p.build=function(deferBuild){return!0===deferBuild?this._deferred_build=!0:(void 0===deferBuild||this._deferred_build)&&(this._string=URI.build(this._parts),this._deferred_build=!1),this},p.clone=function(){return new URI(this)},p.valueOf=p.toString=function(){return this.build(!1)._string},p.protocol=generateSimpleAccessor("protocol"),p.username=generateSimpleAccessor("username"),p.password=generateSimpleAccessor("password"),p.hostname=generateSimpleAccessor("hostname"),p.port=generateSimpleAccessor("port"),p.query=generatePrefixAccessor("query","?"),p.fragment=generatePrefixAccessor("fragment","#"),p.search=function(v,build){var t=this.query(v,build);return"string"==typeof t&&t.length?"?"+t:t},p.hash=function(v,build){var t=this.fragment(v,build);return"string"==typeof t&&t.length?"#"+t:t},p.pathname=function(v,build){if(void 0===v||!0===v){var res=this._parts.path||(this._parts.hostname?"/":"");return v?(this._parts.urn?URI.decodeUrnPath:URI.decodePath)(res):res}return this._parts.urn?this._parts.path=v?URI.recodeUrnPath(v):"":this._parts.path=v?URI.recodePath(v):"/",this.build(!build),this},p.path=p.pathname,p.href=function(href,build){if(void 0===href)return this.toString();this._string="",this._parts=URI._parts();var _URI=href instanceof URI,_object="object"===(void 0===href?"undefined":_typeof(href))&&(href.hostname||href.path||href.pathname);if(href.nodeName){href=href[URI.getDomAttribute(href)]||"",_object=!1}if(!_URI&&_object&&void 0!==href.pathname&&(href=href.toString()),"string"==typeof href||href instanceof String)this._parts=URI.parse(String(href),this._parts);else{if(!_URI&&!_object)throw new TypeError("invalid input");var src=_URI?href._parts:href;for(var key in src)"query"!==key&&hasOwn.call(this._parts,key)&&(this._parts[key]=src[key]);src.query&&this.query(src.query,!1)}return this.build(!build),this},p.is=function(what){var ip=!1,ip4=!1,ip6=!1,name=!1,sld=!1,idn=!1,punycode=!1,relative=!this._parts.urn;switch(this._parts.hostname&&(relative=!1,ip4=URI.ip4_expression.test(this._parts.hostname),ip6=URI.ip6_expression.test(this._parts.hostname),ip=ip4||ip6,name=!ip,sld=name&&SLD&&SLD.has(this._parts.hostname),idn=name&&URI.idn_expression.test(this._parts.hostname),punycode=name&&URI.punycode_expression.test(this._parts.hostname)),what.toLowerCase()){case"relative":return relative;case"absolute":return!relative;case"domain":case"name":return name;case"sld":return sld;case"ip":return ip;case"ip4":case"ipv4":case"inet4":return ip4;case"ip6":case"ipv6":case"inet6":return ip6;case"idn":return idn;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return punycode}return null};var _protocol=p.protocol,_port=p.port,_hostname=p.hostname;p.protocol=function(v,build){if(v&&(v=v.replace(/:(\/\/)?$/,""),!v.match(URI.protocol_expression)))throw new TypeError('Protocol "'+v+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return _protocol.call(this,v,build)},p.scheme=p.protocol,p.port=function(v,build){return this._parts.urn?void 0===v?"":this:(void 0!==v&&(0===v&&(v=null),v&&(v+="",":"===v.charAt(0)&&(v=v.substring(1)),URI.ensureValidPort(v))),_port.call(this,v,build))},p.hostname=function(v,build){if(this._parts.urn)return void 0===v?"":this;if(void 0!==v){var x={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==URI.parseHost(v,x))throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-]');v=x.hostname,this._parts.preventInvalidHostname&&URI.ensureValidHostname(v,this._parts.protocol)}return _hostname.call(this,v,build)},p.origin=function(v,build){if(this._parts.urn)return void 0===v?"":this;if(void 0===v){var protocol=this.protocol();return this.authority()?(protocol?protocol+"://":"")+this.authority():""}var origin=URI(v);return this.protocol(origin.protocol()).authority(origin.authority()).build(!build),this},p.host=function(v,build){if(this._parts.urn)return void 0===v?"":this;if(void 0===v)return this._parts.hostname?URI.buildHost(this._parts):"";if("/"!==URI.parseHost(v,this._parts))throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-]');return this.build(!build),this},p.authority=function(v,build){if(this._parts.urn)return void 0===v?"":this;if(void 0===v)return this._parts.hostname?URI.buildAuthority(this._parts):"";if("/"!==URI.parseAuthority(v,this._parts))throw new TypeError('Hostname "'+v+'" contains characters other than [A-Z0-9.-]');return this.build(!build),this},p.userinfo=function(v,build){if(this._parts.urn)return void 0===v?"":this;if(void 0===v){var t=URI.buildUserinfo(this._parts);return t?t.substring(0,t.length-1):t}return"@"!==v[v.length-1]&&(v+="@"),URI.parseUserinfo(v,this._parts),this.build(!build),this},p.resource=function(v,build){var parts;return void 0===v?this.path()+this.search()+this.hash():(parts=URI.parse(v),this._parts.path=parts.path,this._parts.query=parts.query,this._parts.fragment=parts.fragment,this.build(!build),this)},p.subdomain=function(v,build){if(this._parts.urn)return void 0===v?"":this;if(void 0===v){if(!this._parts.hostname||this.is("IP"))return"";var end=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,end)||""}var e=this._parts.hostname.length-this.domain().length,sub=this._parts.hostname.substring(0,e),replace=new RegExp("^"+escapeRegEx(sub));if(v&&"."!==v.charAt(v.length-1)&&(v+="."),-1!==v.indexOf(":"))throw new TypeError("Domains cannot contain colons");return v&&URI.ensureValidHostname(v,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(replace,v),this.build(!build),this},p.domain=function(v,build){if(this._parts.urn)return void 0===v?"":this;if("boolean"==typeof v&&(build=v,v=void 0),void 0===v){if(!this._parts.hostname||this.is("IP"))return"";var t=this._parts.hostname.match(/\./g);if(t&&t.length<2)return this._parts.hostname;var end=this._parts.hostname.length-this.tld(build).length-1;return end=this._parts.hostname.lastIndexOf(".",end-1)+1,this._parts.hostname.substring(end)||""}if(!v)throw new TypeError("cannot set domain empty");if(-1!==v.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(URI.ensureValidHostname(v,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=v;else{var replace=new RegExp(escapeRegEx(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(replace,v)}return this.build(!build),this},p.tld=function(v,build){if(this._parts.urn)return void 0===v?"":this;if("boolean"==typeof v&&(build=v,v=void 0),void 0===v){if(!this._parts.hostname||this.is("IP"))return"";var pos=this._parts.hostname.lastIndexOf("."),tld=this._parts.hostname.substring(pos+1);return!0!==build&&SLD&&SLD.list[tld.toLowerCase()]?SLD.get(this._parts.hostname)||tld:tld}var replace;if(!v)throw new TypeError("cannot set TLD empty");if(v.match(/[^a-zA-Z0-9-]/)){if(!SLD||!SLD.is(v))throw new TypeError('TLD "'+v+'" contains characters other than [A-Z0-9]');replace=new RegExp(escapeRegEx(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(replace,v)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");replace=new RegExp(escapeRegEx(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(replace,v)}return this.build(!build),this},p.directory=function(v,build){if(this._parts.urn)return void 0===v?"":this;if(void 0===v||!0===v){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var end=this._parts.path.length-this.filename().length-1,res=this._parts.path.substring(0,end)||(this._parts.hostname?"/":"");return v?URI.decodePath(res):res}var e=this._parts.path.length-this.filename().length,directory=this._parts.path.substring(0,e),replace=new RegExp("^"+escapeRegEx(directory));return this.is("relative")||(v||(v="/"),"/"!==v.charAt(0)&&(v="/"+v)),v&&"/"!==v.charAt(v.length-1)&&(v+="/"),v=URI.recodePath(v),this._parts.path=this._parts.path.replace(replace,v),this.build(!build),this},p.filename=function(v,build){if(this._parts.urn)return void 0===v?"":this;if("string"!=typeof v){if(!this._parts.path||"/"===this._parts.path)return"";var pos=this._parts.path.lastIndexOf("/"),res=this._parts.path.substring(pos+1);return v?URI.decodePathSegment(res):res}var mutatedDirectory=!1;"/"===v.charAt(0)&&(v=v.substring(1)),v.match(/\.?\//)&&(mutatedDirectory=!0);var replace=new RegExp(escapeRegEx(this.filename())+"$");return v=URI.recodePath(v),this._parts.path=this._parts.path.replace(replace,v),mutatedDirectory?this.normalizePath(build):this.build(!build),this},p.suffix=function(v,build){if(this._parts.urn)return void 0===v?"":this;if(void 0===v||!0===v){if(!this._parts.path||"/"===this._parts.path)return"";var s,res,filename=this.filename(),pos=filename.lastIndexOf(".");return-1===pos?"":(s=filename.substring(pos+1),res=/^[a-z0-9%]+$/i.test(s)?s:"",v?URI.decodePathSegment(res):res)}"."===v.charAt(0)&&(v=v.substring(1));var replace,suffix=this.suffix();if(suffix)replace=v?new RegExp(escapeRegEx(suffix)+"$"):new RegExp(escapeRegEx("."+suffix)+"$");else{if(!v)return this;this._parts.path+="."+URI.recodePath(v)}return replace&&(v=URI.recodePath(v),this._parts.path=this._parts.path.replace(replace,v)),this.build(!build),this},p.segment=function(segment,v,build){var separator=this._parts.urn?":":"/",path=this.path(),absolute="/"===path.substring(0,1),segments=path.split(separator);if(void 0!==segment&&"number"!=typeof segment&&(build=v,v=segment,segment=void 0),void 0!==segment&&"number"!=typeof segment)throw new Error('Bad segment "'+segment+'", must be 0-based integer');if(absolute&&segments.shift(),segment<0&&(segment=Math.max(segments.length+segment,0)),void 0===v)return void 0===segment?segments:segments[segment];if(null===segment||void 0===segments[segment])if(isArray(v)){segments=[];for(var i=0,l=v.length;i1&&(result=parts[0]+"@",string=parts[1]),string=string.replace(regexSeparators,"."),result+map(string.split("."),fn).join(".")}function ucs2decode(string){for(var value,extra,output=[],counter=0,length=string.length;counter=55296&&value<=56319&&counter65535&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|1023&value),output+=stringFromCharCode(value)}).join("")}function basicToDigit(codePoint){return codePoint-48<10?codePoint-22:codePoint-65<26?codePoint-65:codePoint-97<26?codePoint-97:base}function digitToBasic(digit,flag){return digit+22+75*(digit<26)-((0!=flag)<<5)}function adapt(delta,numPoints,firstTime){var k=0;for(delta=firstTime?floor(delta/700):delta>>1,delta+=floor(delta/numPoints);delta>baseMinusTMin*tMax>>1;k+=base)delta=floor(delta/baseMinusTMin);return floor(k+(baseMinusTMin+1)*delta/(delta+38))}function decode(input){var out,basic,j,index,oldi,w,k,digit,t,baseMinusT,output=[],inputLength=input.length,i=0,n=initialN,bias=initialBias;for(basic=input.lastIndexOf(delimiter),basic<0&&(basic=0),j=0;j=128&&error("not-basic"),output.push(input.charCodeAt(j));for(index=basic>0?basic+1:0;index=inputLength&&error("invalid-input"),digit=basicToDigit(input.charCodeAt(index++)),(digit>=base||digit>floor((maxInt-i)/w))&&error("overflow"),i+=digit*w,t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias,!(digitfloor(maxInt/baseMinusT)&&error("overflow"),w*=baseMinusT;out=output.length+1,bias=adapt(i-oldi,out,0==oldi),floor(i/out)>maxInt-n&&error("overflow"),n+=floor(i/out),i%=out,output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,inputLength,handledCPCountPlusOne,baseMinusT,qMinusT,output=[];for(input=ucs2decode(input),inputLength=input.length,n=initialN,delta=0,bias=initialBias,j=0;j=n&¤tValuefloor((maxInt-delta)/handledCPCountPlusOne)&&error("overflow"),delta+=(m-n)*handledCPCountPlusOne,n=m,j=0;jmaxInt&&error("overflow"),currentValue==n){for(q=delta,k=base;t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias,!(q= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;if(punycode={version:"1.3.2",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:function(input){return mapDomain(input,function(string){return regexNonASCII.test(string)?"xn--"+encode(string):string})},toUnicode:function(input){return mapDomain(input,function(string){return regexPunycode.test(string)?decode(string.slice(4).toLowerCase()):string})}},"object"==_typeof(__webpack_require__(12))&&__webpack_require__(12))void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return punycode}.call(exports,__webpack_require__,exports,module))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__);else if(freeExports&&freeModule)if(module.exports==freeExports)freeModule.exports=punycode;else for(key in punycode)punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);else root.punycode=punycode}(void 0)}).call(exports,__webpack_require__(5)(module),__webpack_require__(6))},function(module,exports){(function(__webpack_amd_options__){module.exports=__webpack_amd_options__}).call(exports,{})},function(module,exports,__webpack_require__){"use strict";(function(module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};!function(root,factory){"object"===_typeof(module)&&module.exports?module.exports=factory():(__WEBPACK_AMD_DEFINE_FACTORY__=factory,void 0!==(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(0,function(root){var _IPv6=root&&root.IPv6;return{best:function(address){var _address=address.toLowerCase(),segments=_address.split(":"),length=segments.length,total=8;""===segments[0]&&""===segments[1]&&""===segments[2]?(segments.shift(),segments.shift()):""===segments[0]&&""===segments[1]?segments.shift():""===segments[length-1]&&""===segments[length-2]&&segments.pop(),length=segments.length,-1!==segments[length-1].indexOf(".")&&(total=7);var pos;for(pos=0;pos1);j++)_segments.splice(0,1);segments[i]=_segments.join("")}var best=-1,_best=0,_current=0,current=-1,inzeroes=!1;for(i=0;i_best&&(best=current,_best=_current)):"0"===segments[i]&&(inzeroes=!0,current=i,_current=1);_current>_best&&(best=current,_best=_current),_best>1&&segments.splice(best,_best,""),length=segments.length;var result="";for(""===segments[0]&&(result=":"),i=0;i=domain.length-1)return!1;var sldOffset=domain.lastIndexOf(".",tldOffset-1);if(sldOffset<=0||sldOffset>=tldOffset-1)return!1;var sldList=SLD.list[domain.slice(tldOffset+1)];return!!sldList&&sldList.indexOf(" "+domain.slice(sldOffset+1,tldOffset)+" ")>=0},is:function(domain){var tldOffset=domain.lastIndexOf(".");if(tldOffset<=0||tldOffset>=domain.length-1)return!1;if(domain.lastIndexOf(".",tldOffset-1)>=0)return!1;var sldList=SLD.list[domain.slice(tldOffset+1)];return!!sldList&&sldList.indexOf(" "+domain.slice(0,tldOffset)+" ")>=0},get:function(domain){var tldOffset=domain.lastIndexOf(".");if(tldOffset<=0||tldOffset>=domain.length-1)return null;var sldOffset=domain.lastIndexOf(".",tldOffset-1);if(sldOffset<=0||sldOffset>=tldOffset-1)return null;var sldList=SLD.list[domain.slice(tldOffset+1)];return sldList?sldList.indexOf(" "+domain.slice(sldOffset+1,tldOffset)+" ")<0?null:domain.slice(sldOffset+1):null},noConflict:function(){return root.SecondLevelDomains===this&&(root.SecondLevelDomains=_SecondLevelDomains),this}};return SLD})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){__webpack_require__(16),__webpack_require__(20),module.exports=__webpack_require__(21)},function(module,exports,__webpack_require__){"use strict";(function(global,setImmediate){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};!function(name,context,definition){context[name]=context[name]||function(){function schedule(fn,self){scheduling_queue.add(fn,self),cycle||(cycle=timer(scheduling_queue.drain))}function isThenable(o){var _then,o_type=void 0===o?"undefined":_typeof(o);return null==o||"object"!=o_type&&"function"!=o_type||(_then=o.then),"function"==typeof _then&&_then}function notify(){for(var i=0;i0&&schedule(notify,self))}catch(err){reject.call(new MakeDefWrapper(self),err)}}}function reject(msg){var self=this;self.triggered||(self.triggered=!0,self.def&&(self=self.def),self.msg=msg,self.state=2,self.chain.length>0&&schedule(notify,self))}function iteratePromises(Constructor,arr,resolver,rejecter){for(var idx=0;idx=0&&(item._idleTimeoutId=setTimeout(function(){item._onTimeout&&item._onTimeout()},msecs))},__webpack_require__(18),exports.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==global&&global.setImmediate||void 0,exports.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==global&&global.clearImmediate||void 0}).call(exports,__webpack_require__(6))},function(module,exports,__webpack_require__){"use strict";(function(global,process){!function(global,undefined){function setImmediate(callback){"function"!=typeof callback&&(callback=new Function(""+callback));for(var args=new Array(arguments.length-1),i=0;i1)for(var i=1;i-1?upcased:method}function Request(input,options){options=options||{};var body=options.body;if(input instanceof Request){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=new Headers(input.headers)),this.method=input.method,this.mode=input.mode,body||null==input._bodyInit||(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=options.credentials||this.credentials||"omit",!options.headers&&this.headers||(this.headers=new Headers(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}function decode(body){var form=new FormData;return body.trim().split("&").forEach(function(bytes){if(bytes){var split=bytes.split("="),name=split.shift().replace(/\+/g," "),value=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value))}}),form}function parseHeaders(rawHeaders){var headers=new Headers;return rawHeaders.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(line){var parts=line.split(":"),key=parts.shift().trim();if(key){var value=parts.join(":").trim();headers.append(key,value)}}),headers}function Response(bodyInit,options){options||(options={}),this.type="default",this.status=void 0===options.status?200:options.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in options?options.statusText:"OK",this.headers=new Headers(options.headers),this.url=options.url||"",this._initBody(bodyInit)}if(!self.fetch){var support={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isDataView=function(obj){return obj&&DataView.prototype.isPrototypeOf(obj)},isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1};Headers.prototype.append=function(name,value){name=normalizeName(name),value=normalizeValue(value);var oldValue=this.map[name];this.map[name]=oldValue?oldValue+","+value:value},Headers.prototype.delete=function(name){delete this.map[normalizeName(name)]},Headers.prototype.get=function(name){return name=normalizeName(name),this.has(name)?this.map[name]:null},Headers.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))},Headers.prototype.set=function(name,value){this.map[normalizeName(name)]=normalizeValue(value)},Headers.prototype.forEach=function(callback,thisArg){for(var name in this.map)this.map.hasOwnProperty(name)&&callback.call(thisArg,this.map[name],name,this)},Headers.prototype.keys=function(){var items=[];return this.forEach(function(value,name){items.push(name)}),iteratorFor(items)},Headers.prototype.values=function(){var items=[];return this.forEach(function(value){items.push(value)}),iteratorFor(items)},Headers.prototype.entries=function(){var items=[];return this.forEach(function(value,name){items.push([name,value])}),iteratorFor(items)},support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var response=new Response(null,{status:0,statusText:""});return response.type="error",response};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(-1===redirectStatuses.indexOf(status))throw new RangeError("Invalid status code");return new Response(null,{status:status,headers:{location:url}})},self.Headers=Headers,self.Request=Request,self.Response=Response,self.fetch=function(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init),xhr=new XMLHttpRequest;xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||"")};options.url="responseURL"in xhr?xhr.responseURL:options.headers.get("X-Request-URL");var body="response"in xhr?xhr.response:xhr.responseText;resolve(new Response(body,options))},xhr.onerror=function(){reject(new TypeError("Network request failed"))},xhr.ontimeout=function(){reject(new TypeError("Network request failed"))},xhr.open(request.method,request.url,!0),"include"===request.credentials?xhr.withCredentials=!0:"omit"===request.credentials&&(xhr.withCredentials=!1),"responseType"in xhr&&support.blob&&(xhr.responseType="blob"),request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value)}),xhr.send(void 0===request._bodyInit?null:request._bodyInit)})},self.fetch.polyfill=!0}}("undefined"!=typeof self?self:void 0)},function(module,exports,__webpack_require__){"use strict";var BuyerAnalytics=__webpack_require__(22).default;if(window.BuyerAnalytics&&!1===window.BuyerAnalytics.isFullLibrary)BuyerAnalytics.getInstance();else if(null==window.BuyerAnalytics){var preboot=window.BuyerAnalyticsPreboot;preboot?BuyerAnalytics.getInstance(preboot.config):window.BuyerAnalytics=BuyerAnalytics}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=Object.assign||function(target){for(var i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return this.queueEvents=!0,this.trackingServices=[],this.debug=config.debug,this.debug?(this.trackingServices.push(this.debugTrackingService),this.lumberjack.debug=!0,config.throwErrorsInDebug&&(this.lumberjack.throwErrors=!0)):this.fullTrackingServices.forEach(function(trackingService){_this.trackingServices.push(trackingService)}),this.initTrackingServices(config.pageAndUserData)}},{key:"initTrackingServices",value:function(pageAndUserData){var _this2=this;return Promise.resolve().then(function(){return _this2.isFullyInitialized?Promise.resolve():(_this2.isFullyInitialized=!0,Promise.all(_this2.trackingServices.map(function(trackingService){return trackingService.isServiceInitialized()?Promise.resolve():trackingService.init(pageAndUserData)})))}).catch(function(error){return _this2.lumberjack.warn(error)}).then(function(){return _this2.queueEvents=!1,_this2.trackAndEmptyQueue()})}},{key:"track",value:function(type,props){var _this3=this,properties=_extends({type:type},props);return Promise.resolve().then(function(){if((0,_shared.validateEventProps)(properties),_this3.queueEvents)return _this3.eventQueue.enqueue(properties);var event=_this3.getEvent(properties);return Promise.all(_this3.trackingServices.map(function(trackingService){return trackingService.track(event)})).then(function(successes){return successes.reduce(function(previous,current){return previous&¤t},!0)})}).catch(function(error){return _this3.handleError(error)})}},{key:"getEvent",value:function(properties){return _EventBuilder2.default.fromProps(properties)}},{key:"trackAndEmptyQueue",value:function(){var _this4=this;return this.eventQueue.empty(function(event){var properties=event.properties,resolve=event.resolve;return _this4.track(properties).then(resolve)})}},{key:"handleError",value:function(error){return this.lumberjack.error(error).then(function(){return!1})}},{key:"getInstance",value:function(){return this}}],[{key:"getInstance",value:function(){var config=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},configInternal=(0,_defaultConfig2.default)(config);window.BuyerAnalytics&&window.BuyerAnalytics.config&&(configInternal=(0,_defaultConfig2.default)(window.BuyerAnalytics.config));var logger=_BuyerAnalyticsLumberjack2.default.getInstance({host:configInternal.host,project:"BuyerAnalytics",release:"1.3.0",sentryClient:configInternal.sentryClient});if(window.BuyerAnalytics&&window.BuyerAnalytics.isFullLibrary)return"1.3.0"!==window.BuyerAnalytics.version&&logger.warn("Different version of BuyerAnalytics found on page ("+window.BuyerAnalytics.version+")"),window.BuyerAnalytics;logger.logVersion("1.3.0");var classes={fullTrackingServices:[],debugTrackingService:null,nonTrackingTrackingService:null};classes.fullTrackingServices.push(new _SnowplowTrackingService2.default({snowplowName:configInternal.snowplowName,snowplowNamespace:configInternal.snowplowNamespace,snowplowAppID:configInternal.snowplowAppID,timeout:configInternal.timeout,logger:logger})),classes.debugTrackingService=new _DebugTrackingService2.default(configInternal),classes.nonTrackingTrackingService=new _NonTrackingTrackingService2.default,classes.lumberjack=logger;var ba=new BuyerAnalytics(classes);window.BuyerAnalytics&&window.BuyerAnalytics.eventQueue&&(ba.eventQueue=window.BuyerAnalytics.eventQueue);try{ba.initialize(configInternal).catch(function(error){return logger.error(error)})}catch(error){logger.error(error)}return window.BuyerAnalytics=ba,ba}},{key:"install",value:function(Vue,options){(0,_shared.installVuePlugin)(this,Vue,options)}}]),BuyerAnalytics}();exports.default=BuyerAnalytics},function(module,exports,__webpack_require__){"use strict";window.console&&window.console.log||(window.console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){}})},function(module,exports,__webpack_require__){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i0}},{key:"empty",value:function(processor){for(var promises=[];this.hasMore();)promises.push(processor(this.dequeue()));return Promise.all(promises)}},{key:"flush",value:function(){return this.empty(function(event){(0,event.reject)()})}}]),EventQueue}();exports.default=EventQueue},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.defineProperty(exports,"__esModule",{value:!0}),exports.eventClasses=void 0;var _eventClasses,_createClass=function(){function defineProperties(target,props){for(var i=0;i. or just ",examples:["shop_all","order_online","item","cart","checkout","order_status","order_online.sw_fulfillment","splash","splash.ordering"],pattern_description:"allowed characters: [a-z_.]; maximum of three substrings separated by periods .; within each substring, allow a maximum of 2 underscores _ ",pattern:"^[0-9a-z]+(?:_[0-9a-z]+){0,2}(?:\\.[0-9a-z]+(?:_[0-9a-z]+){0,2}){0,2}$"},object_category:{type:"string",enum:["link_button","radio_button","dropdown_button","toggle_button"]},action:{type:"string",enum:["click","enable","disable"]},object_instance:{type:"string",description:"A string that intuitively and uniquely identifies the button in question compared to others on same page. This will often be simply the text on the button itself or the location that the button navigates to.",pattern_description:"allowed characters: [a-z_.]; use underscore _ instead of -, characters must be lowercase",pattern:"^[0-9a-z]+(?:_[0-9a-z]+)*(?:\\.[0-9a-z]+(?:_[0-9a-z]+)*)*$"},property:{type:"string",default:"",enum:[""]},value:{type:"string",default:"",enum:[""]},version:{type:"string",default:""},buyer_context:{type:"object",properties:{visitor_id:{type:"string",pattern_description:"uuid",pattern:"^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"},visitor_type:{type:"string",enum:["new","existing"]},square_customer_account_id:{type:"string",description:"id from (microservice) buyers.customer_accounts / PK for a customer account"},square_buyer_id:{type:"string",description:"id from Square buyer_profile service"},square_pay_buyer_type:{type:"string",description:"describes if buyer has a credit card profile and is net new sign up",enum:["phone_existing_has_card","phone_existing_no_card","new_phone"]}}},event_context:{type:"object",properties:{event_attributes:{type:"object",description:"json of non-necessary event identifiers that don't fit in existing Contexts. e.g. alt payment tokens, fulfillment meter progress in cents."}}}},unevaluatedProperties:!1,required:["location","object_category","action","buyer_context"],if:{properties:{location:{pattern:"^(cart|checkout)([^\\.A-Z]*\\.[^\\.A-Z]*){0,2}$"}}},then:{properties:{order_context:{type:"object",properties:{com_order_guid:{type:"string",description:"order or cart generated by buyer / (PK) id from weebly.com_order"},site_order_id:{type:"string",description:"site_order_id from weebly.com_order. Not a PK by itself, compound PK with user_id | site_id | site_order_id"},square_order_id:{type:"string",description:"(PK) id from orders.raw_feeds.orders / external_bill_token from fact_payment_transaction"},payment_token:{type:"string",description:"(PK) payment_token from hexagon.vfact_payment_transactions; only on Order.schema.json"},fulfillment:{type:"string",description:"fulfillment method of the cart / order",enum:["odd","spd","sso","sso_open_tabs","manual","shipping","pickup"]},order_attributes:{type:"object",description:"json of non-necessary order identifiers like coupon code, loyalty points earned, etc."}}}},required:["order_context"]}},validate.errors=null,module.exports=validate},function(module,exports,__webpack_require__){"use strict";var isArray=Array.isArray,keyList=Object.keys,hasProp=Object.prototype.hasOwnProperty;module.exports=function equal(a,b){if(a===b)return!0;var i,length,key,arrA=isArray(a),arrB=isArray(b);if(arrA&&arrB){if((length=a.length)!=b.length)return!1;for(i=0;i. or just ",examples:["shop_all","order_online","item","cart","checkout","order_status","order_online.sw_fulfillment","splash","splash.ordering"],pattern_description:"allowed characters: [a-z_.]; maximum of three substrings separated by periods .; within each substring, allow a maximum of 2 underscores _ ",pattern:"^[0-9a-z]+(?:_[0-9a-z]+){0,2}(?:\\.[0-9a-z]+(?:_[0-9a-z]+){0,2}){0,2}$"},object_category:{type:"string",default:"error",enum:["error"]},action:{type:"string",enum:["log","view"]},object_instance:{type:"string",description:"A string that intuitively and uniquely identifies the error in question compared to others on same page. This will often be simply the text of the error",pattern_description:"allowed characters: [a-z_.]; use underscore _ instead of -, characters must be lowercase",pattern:"^[0-9a-z]+(?:_[0-9a-z]+)*(?:\\.[0-9a-z]+(?:_[0-9a-z]+)*)*$"},property:{type:"string",default:""},value:{type:"string",default:""},version:{type:"string",default:""},buyer_context:{type:"object",properties:{visitor_id:{type:"string",pattern_description:"uuid",pattern:"^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"},visitor_type:{type:"string",enum:["new","existing"]},square_customer_account_id:{type:"string",description:"id from (microservice) buyers.customer_accounts / PK for a customer account"},square_buyer_id:{type:"string",description:"id from Square buyer_profile service"},square_pay_buyer_type:{type:"string",description:"describes if buyer has a credit card profile and is net new sign up",enum:["phone_existing_has_card","phone_existing_no_card","new_phone"]}}},merchant_context:{type:"object",properties:{user_id:{type:"string",description:"(PK) id from weebly.user"},merchant_token:{type:"string",description:"(PK) merchant_token from hexagon.vdim_merchant on Square"}}},site_context:{type:"object",properties:{catalog_site_id:{type:"string",description:"storefront_site_id if single site, catalog_site_id if a multisite. id from weebly.site"},storefront_site_id:{type:"string",description:"id from weebly_data.site"},product:{type:"string",description:"which Ecom product (E2E experience) the buyer is interacting with / firing events on",enum:["sos","soc","kiosk","square_go"]},subproduct:{type:"string",description:"for SOC links, set based on link type (pay/cart/buy). for SO and SO-platform products, set based on pre-cart experience. default to sos if no specific experience is active.",enum:["soc_pay","soc_cart","soc_buy","sos","sso","sso_open_tabs"]},platform:{type:"string",description:"created for internal Square use case or by an external 3P developer",enum:["first_party","api"]}}},event_context:{type:"object",properties:{user_id:{type:"object",description:"json of non-necessary event identifiers that don't fit in existing Contexts. e.g. alt payment tokens, fulfillment meter progress in cents."}}}},unevaluatedProperties:!1,required:["location","object_category","action","buyer_context"]},validate.errors=null,module.exports=validate},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i. or just ",examples:["shop_all","order_online","item","cart","checkout","order_status","order_online.sw_fulfillment","splash","splash.ordering"],pattern_description:"allowed characters: [a-z_.]; maximum of three substrings separated by periods .; within each substring, allow a maximum of 2 underscores _ ",pattern:"^[0-9a-z]+(?:_[0-9a-z]+){0,2}(?:\\.[0-9a-z]+(?:_[0-9a-z]+){0,2}){0,2}$"},object_category:{type:"string",default:"item",enum:["item"]},action:{type:"string",enum:["view","click"]},object_instance:{type:"string",description:"A string that intuitively and uniquely identifies the item at a high categorical level. This is usually blank.",pattern_description:"allowed characters: [a-z_.]; use underscore _ instead of -, characters must be lowercase",pattern:"^[0-9a-z]+(?:_[0-9a-z]+)*(?:\\.[0-9a-z]+(?:_[0-9a-z]+)*)*$"},property:{type:"string",default:""},value:{type:"string",default:""},version:{type:"string",default:""},buyer_context:{type:"object",properties:{visitor_id:{type:"string",pattern_description:"uuid",pattern:"^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"},visitor_type:{type:"string",enum:["new","existing"]},square_customer_account_id:{type:"string",description:"id from (microservice) buyers.customer_accounts / PK for a customer account"},square_buyer_id:{type:"string",description:"id from Square buyer_profile service"},square_pay_buyer_type:{type:"string",description:"describes if buyer has a credit card profile and is net new sign up",enum:["phone_existing_has_card","phone_existing_no_card","new_phone"]}}},item_context:{type:"object",properties:{site_product_id:{type:"string",description:"site_order_id from weebly.com_product. Not a PK by itself, compound PK with user_id | site_id | site_product_id"},com_product_guid:{type:"string",description:"item in Weebly Catalog / (PK) id from weebly.com_product"},com_order_item_guid:{type:"string",description:"SKU-level breakdown of items in an order / (PK) id from weebly.com_order_item"},square_item_id:{type:"string",description:"item in Square Catalog / (PK) id from items.raw_feeds.catalog_item "},item_attributes:{type:"object",description:"json of non-necessary item identifiers like item price etc."}}},order_context:{type:"object",properties:{com_order_guid:{type:"string",description:"order or cart generated by buyer / (PK) id from weebly.com_order"},site_order_id:{type:"string",description:"site_order_id from weebly.com_order. Not a PK by itself, compound PK with user_id | site_id | site_order_id"},square_order_id:{type:"string",description:"(PK) id from orders.raw_feeds.orders / external_bill_token from fact_payment_transaction"},payment_token:{type:"string",description:"(PK) payment_token from hexagon.vfact_payment_transactions; only on Order.schema.json"},fulfillment:{type:"string",description:"fulfillment method of the cart / order",enum:["odd","spd","sso","sso_open_tabs","manual","shipping","pickup"]},order_attributes:{type:"object",description:"json of non-necessary order identifiers like coupon code, loyalty points earned, etc."}}},event_context:{type:"object",properties:{event_attributes:{type:"object",description:"json of non-necessary event identifiers that don't fit in existing Contexts. e.g. alt payment tokens, fulfillment meter progress in cents."}}}},required:["location","object_category","action","buyer_context","item_context"]},validate.errors=null,module.exports=validate},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i. or just ",examples:["shop_all","order_online","item","cart","checkout","order_status","order_online.sw_fulfillment","splash","splash.ordering"],pattern_description:"allowed characters: [a-z_.]; maximum of three substrings separated by periods .; within each substring, allow a maximum of 2 underscores _ ",pattern:"^[0-9a-z]+(?:_[0-9a-z]+){0,2}(?:\\.[0-9a-z]+(?:_[0-9a-z]+){0,2}){0,2}$"},object_category:{type:"string",default:"order",enum:["order"]},action:{type:"string",enum:["add","edit","log","remove","submit"]},object_instance:{type:"string",description:"A string that intuitively and uniquely identifies the type of order at a high level",pattern_description:"allowed characters: [a-z_.]; use underscore _ instead of -, characters must be lowercase",pattern:"^[0-9a-z]+(?:_[0-9a-z]+)*(?:\\.[0-9a-z]+(?:_[0-9a-z]+)*)*$"},property:{type:"string",default:""},value:{type:"string",default:""},version:{type:"string",default:""},buyer_context:{type:"object",properties:{visitor_id:{type:"string",pattern_description:"uuid",pattern:"^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"},visitor_type:{type:"string",enum:["new","existing"]},square_customer_account_id:{type:"string",description:"id from (microservice) buyers.customer_accounts / PK for a customer account"},square_buyer_id:{type:"string",description:"id from Square buyer_profile service"},square_pay_buyer_type:{type:"string",description:"describes if buyer has a credit card profile and is net new sign up",enum:["phone_existing_has_card","phone_existing_no_card","new_phone"]}}},item_contexts:{type:"array",items:{type:"object",properties:{site_product_id:{type:"string",description:"site_order_id from weebly.com_product. Not a PK by itself, compound PK with user_id | site_id | site_product_id"},com_product_guid:{type:"string",description:"item in Weebly Catalog / (PK) id from weebly.com_product"},com_order_item_guid:{type:"string",description:"SKU-level breakdown of items in an order / (PK) id from weebly.com_order_item"},square_item_id:{type:"string",description:"item in Square Catalog / (PK) id from items.raw_feeds.catalog_item "},item_attributes:{type:"object",description:"json of non-necessary item identifiers like item price etc."}}}},order_context:{type:"object",properties:{com_order_guid:{type:"string",description:"order or cart generated by buyer / (PK) id from weebly.com_order"},site_order_id:{type:"string",description:"site_order_id from weebly.com_order. Not a PK by itself, compound PK with user_id | site_id | site_order_id"},square_order_id:{type:"string",description:"(PK) id from orders.raw_feeds.orders / external_bill_token from fact_payment_transaction"},payment_token:{type:"string",description:"(PK) payment_token from hexagon.vfact_payment_transactions; only on Order.schema.json"},fulfillment:{type:"string",description:"fulfillment method of the cart / order",enum:["odd","spd","sso","sso_open_tabs","manual","shipping","pickup"]},order_attributes:{type:"object",description:"json of non-necessary order identifiers like coupon code, loyalty points earned, etc."}}},event_context:{type:"object",properties:{event_attributes:{type:"object",description:"json of non-necessary event identifiers that don't fit in existing Contexts. e.g. alt payment tokens, fulfillment meter progress in cents."}}}},unevaluatedProperties:!1,required:["location","object_category","action","buyer_context","item_contexts","order_context"]},validate.errors=null,module.exports=validate},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i. or just ",examples:["shop_all","order_online","item","cart","checkout","order_status","order_online.sw_fulfillment","splash","splash.ordering"],pattern_description:"allowed characters: [a-z_.]; maximum of three substrings separated by periods .; within each substring, allow a maximum of 2 underscores _ ",pattern:"^[0-9a-z]+(?:_[0-9a-z]+){0,2}(?:\\.[0-9a-z]+(?:_[0-9a-z]+){0,2}){0,2}$"},object_category:{type:"string",enum:["payment_method","payment_profile"]},action:{type:"string",enum:["add","click","edit","input","log","remove","submit","view"]},object_instance:{type:"string",description:"A string that intuitively and uniquely identifies the payment method or profile at a high level",enum:["afterpay","apple_pay","cash_app","credit_card","google_pay","paypal","square_pay","stored_card"]},property:{type:"string",default:""},value:{type:"string",default:""},version:{type:"string",default:""},buyer_context:{type:"object",properties:{visitor_id:{type:"string",pattern_description:"uuid",pattern:"^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"},visitor_type:{type:"string",enum:["new","existing"]},square_customer_account_id:{type:"string",description:"id from (microservice) buyers.customer_accounts / PK for a customer account"},square_buyer_id:{type:"string",description:"id from Square buyer_profile service"},square_pay_buyer_type:{type:"string",description:"describes if buyer has a credit card profile and is net new sign up",enum:["phone_existing_has_card","phone_existing_no_card","new_phone"]}}},order_context:{type:"object",properties:{com_order_guid:{type:"string",description:"order or cart generated by buyer / (PK) id from weebly.com_order"},site_order_id:{type:"string",description:"site_order_id from weebly.com_order. Not a PK by itself, compound PK with user_id | site_id | site_order_id"},square_order_id:{type:"string",description:"(PK) id from orders.raw_feeds.orders / external_bill_token from fact_payment_transaction"},payment_token:{type:"string",description:"(PK) payment_token from hexagon.vfact_payment_transactions; only on Order.schema.json"},fulfillment:{type:"string",description:"fulfillment method of the cart / order",enum:["odd","spd","sso","sso_open_tabs","manual","shipping","pickup"]},order_attributes:{type:"object",description:"json of non-necessary order identifiers like coupon code, loyalty points earned, etc."}}},event_context:{type:"object",properties:{event_attributes:{type:"object",description:"json of non-necessary event identifiers that don't fit in existing Contexts. e.g. alt payment tokens, fulfillment meter progress in cents."}}}},unevaluatedProperties:!1,required:["location","object_category","action","buyer_context","order_context"]},validate.errors=null,module.exports=validate},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i. or just ",examples:["shop_all","order_online","item","cart","checkout","order_status","order_online.sw_fulfillment","splash","splash.ordering"],pattern_description:"allowed characters: [a-z_.]; maximum of three substrings separated by periods .; within each substring, allow a maximum of 2 underscores _ ",pattern:"^[0-9a-z]+(?:_[0-9a-z]+){0,2}(?:\\.[0-9a-z]+(?:_[0-9a-z]+){0,2}){0,2}$"},object_category:{type:"string",enum:["banner","page","modal","section"]},action:{type:"string",default:"view",enum:["view","click"]},object_instance:{type:"string",description:"A string that intuitively and uniquely identifies the site element at a high level",pattern_description:"allowed characters: [a-z_.]; use underscore _ instead of -, characters must be lowercase",pattern:"^[0-9a-z]+(?:_[0-9a-z]+)*(?:\\.[0-9a-z]+(?:_[0-9a-z]+)*)*$"},property:{type:"string",default:""},value:{type:"string",default:""},version:{type:"string",default:""},buyer_context:{type:"object",properties:{visitor_id:{type:"string",pattern_description:"uuid",pattern:"^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"},visitor_type:{type:"string",enum:["new","existing"]},square_customer_account_id:{type:"string",description:"id from (microservice) buyers.customer_accounts / PK for a customer account"},square_buyer_id:{type:"string",description:"id from Square buyer_profile service"},square_pay_buyer_type:{type:"string",description:"describes if buyer has a credit card profile and is net new sign up",enum:["phone_existing_has_card","phone_existing_no_card","new_phone"]}}},event_context:{type:"object",properties:{event_attributes:{type:"object",description:"json of non-necessary event identifiers that don't fit in existing Contexts. e.g. alt payment tokens, fulfillment meter progress in cents."}}},item_context:{type:"object",properties:{square_item_id:{type:"string",description:"item in Square Catalog / (PK) id from items.raw_feeds.catalog_item "}}}},unevaluatedProperties:!1,required:["location","object_category","action","buyer_context"],if:{properties:{location:{pattern:"^(cart|checkout)([^\\.A-Z]*\\.[^\\.A-Z]*){0,2}$"}}},then:{properties:{order_context:{type:"object",properties:{com_order_guid:{type:"string",description:"order or cart generated by buyer / (PK) id from weebly.com_order"},site_order_id:{type:"string",description:"site_order_id from weebly.com_order. Not a PK by itself, compound PK with user_id | site_id | site_order_id"},square_order_id:{type:"string",description:"(PK) id from orders.raw_feeds.orders / external_bill_token from fact_payment_transaction"},payment_token:{type:"string",description:"(PK) payment_token from hexagon.vfact_payment_transactions; only on Order.schema.json"},fulfillment:{type:"string",description:"fulfillment method of the cart / order",enum:["odd","spd","sso","sso_open_tabs","manual","shipping","pickup"]},order_attributes:{type:"object",description:"json of non-necessary order identifiers like coupon code, loyalty points earned, etc."}}}},required:["order_context"]}},validate.errors=null,module.exports=validate},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i. or just ",examples:["shop_all","order_online","item","cart","checkout","order_status","order_online.sw_fulfillment","splash","splash.ordering"],pattern_description:"allowed characters: [a-z_.]; maximum of three substrings separated by periods .; within each substring, allow a maximum of 2 underscores _ ",pattern:"^[0-9a-z]+(?:_[0-9a-z]+){0,2}(?:\\.[0-9a-z]+(?:_[0-9a-z]+){0,2}){0,2}$"},object_category:{type:"string",enum:["sq_loyalty","sq_marketing","sq_giftcards","customer_account","sq_appointments"]},action:{type:"string",enum:["create","log","submit","view","click"]},object_instance:{type:"string",description:"A string that intuitively and uniquely identifies the attribute of the Square Product / Add On",pattern_description:"allowed characters: [a-z_.]; use underscore _ instead of -, characters must be lowercase",pattern:"^[0-9a-z]+(?:_[0-9a-z]+)*(?:\\.[0-9a-z]+(?:_[0-9a-z]+)*)*$"},property:{type:"string",default:""},value:{type:"string",default:""},version:{type:"string",default:""},buyer_context:{type:"object",properties:{visitor_id:{type:"string",pattern_description:"uuid",pattern:"^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"},visitor_type:{type:"string",enum:["new","existing"]},square_customer_account_id:{type:"string",description:"id from (microservice) buyers.customer_accounts / PK for a customer account"},square_buyer_id:{type:"string",description:"id from Square buyer_profile service"},square_pay_buyer_type:{type:"string",description:"describes if buyer has a credit card profile and is net new sign up",enum:["phone_existing_has_card","phone_existing_no_card","new_phone"]}}},event_context:{type:"object",properties:{user_id:{type:"object",description:"json of non-necessary event identifiers that don't fit in existing Contexts. e.g. alt payment tokens, fulfillment meter progress in cents."}}}},unevaluatedProperties:!1,required:["location","object_category","action","buyer_context"],if:{properties:{location:{pattern:"^(cart|checkout)([^\\.A-Z]*\\.[^\\.A-Z]*){0,2}$"}}},then:{properties:{order_context:{type:"object",properties:{com_order_guid:{type:"string",description:"order or cart generated by buyer / (PK) id from weebly.com_order"},site_order_id:{type:"string",description:"site_order_id from weebly.com_order. Not a PK by itself, compound PK with user_id | site_id | site_order_id"},square_order_id:{type:"string",description:"(PK) id from orders.raw_feeds.orders / external_bill_token from fact_payment_transaction"},payment_token:{type:"string",description:"(PK) payment_token from hexagon.vfact_payment_transactions; only on Order.schema.json"},fulfillment:{type:"string",description:"fulfillment method of the cart / order",enum:["odd","spd","sso","sso_open_tabs","manual","shipping","pickup"]},order_attributes:{type:"object",description:"json of non-necessary order identifiers like coupon code, loyalty points earned, etc."}}}},required:["order_context"]}},validate.errors=null,module.exports=validate},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i-1?upcased:method}function Request(input,options){options=options||{};var body=options.body;if(input instanceof Request){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=new Headers(input.headers)),this.method=input.method,this.mode=input.mode,body||null==input._bodyInit||(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=options.credentials||this.credentials||"omit",!options.headers&&this.headers||(this.headers=new Headers(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}function decode(body){var form=new FormData;return body.trim().split("&").forEach(function(bytes){if(bytes){var split=bytes.split("="),name=split.shift().replace(/\+/g," "),value=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value))}}),form}function parseHeaders(rawHeaders){var headers=new Headers;return rawHeaders.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(line){var parts=line.split(":"),key=parts.shift().trim();if(key){var value=parts.join(":").trim();headers.append(key,value)}}),headers}function Response(bodyInit,options){options||(options={}),this.type="default",this.status=void 0===options.status?200:options.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in options?options.statusText:"OK",this.headers=new Headers(options.headers),this.url=options.url||"",this._initBody(bodyInit)}if(!self.fetch){var support={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isDataView=function(obj){return obj&&DataView.prototype.isPrototypeOf(obj)},isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1};Headers.prototype.append=function(name,value){name=normalizeName(name),value=normalizeValue(value);var oldValue=this.map[name];this.map[name]=oldValue?oldValue+","+value:value},Headers.prototype.delete=function(name){delete this.map[normalizeName(name)]},Headers.prototype.get=function(name){return name=normalizeName(name),this.has(name)?this.map[name]:null},Headers.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))},Headers.prototype.set=function(name,value){this.map[normalizeName(name)]=normalizeValue(value)},Headers.prototype.forEach=function(callback,thisArg){for(var name in this.map)this.map.hasOwnProperty(name)&&callback.call(thisArg,this.map[name],name,this)},Headers.prototype.keys=function(){var items=[];return this.forEach(function(value,name){items.push(name)}),iteratorFor(items)},Headers.prototype.values=function(){var items=[];return this.forEach(function(value){items.push(value)}),iteratorFor(items)},Headers.prototype.entries=function(){var items=[];return this.forEach(function(value,name){items.push([name,value])}),iteratorFor(items)},support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var response=new Response(null,{status:0,statusText:""});return response.type="error",response};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(-1===redirectStatuses.indexOf(status))throw new RangeError("Invalid status code");return new Response(null,{status:status,headers:{location:url}})},self.Headers=Headers,self.Request=Request,self.Response=Response,self.fetch=function(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init),xhr=new XMLHttpRequest;xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||"")};options.url="responseURL"in xhr?xhr.responseURL:options.headers.get("X-Request-URL");var body="response"in xhr?xhr.response:xhr.responseText;resolve(new Response(body,options))},xhr.onerror=function(){reject(new TypeError("Network request failed"))},xhr.ontimeout=function(){reject(new TypeError("Network request failed"))},xhr.open(request.method,request.url,!0),"include"===request.credentials?xhr.withCredentials=!0:"omit"===request.credentials&&(xhr.withCredentials=!1),"responseType"in xhr&&support.blob&&(xhr.responseType="blob"),request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value)}),xhr.send(void 0===request._bodyInit?null:request._bodyInit)})},self.fetch.polyfill=!0}}("undefined"!=typeof self?self:void 0)},function(module,exports,__webpack_require__){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},innerConfig={};config.fqurl?innerConfig.logURL=config.fqurl:innerConfig.logURL=(config.host||_defaultConfig2.default.host)+"/"+(config.path||_defaultConfig2.default.path),innerConfig.project=config.project,innerConfig.release=config.release;var cacheKey=JSON.stringify(innerConfig);return window[this.namespace]=window[this.namespace]||{},window[this.namespace][cacheKey]||(window[this.namespace][cacheKey]=new this(innerConfig)),window[this.namespace][cacheKey]}},{key:"namespace",get:function(){return"Lumberjacks"}}]),Lumberjack}();Lumberjack.INFO="info",Lumberjack.WARNING="warning",Lumberjack.ERROR="error",exports.default=Lumberjack},function(module,exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={project:null,release:null,host:"https://www.weebly.com",path:"/api/JsonRPC/Ocular?Ocular[Logger::log]",fqurl:null}}])})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i